﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AdminPage.aspx.cs" Inherits="HotellApplikationASP.AdminPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    
                    <asp:Button ID="ButtonPaging" CssClass="btn btn-default btn-xs mt30" OnClick="ButtonPaging_Click" runat="server" Text="Paging" />
                    <asp:GridView ID="GridView1" runat="server" CssClass="table table-striped table-condensed"
                        ItemType="HotellApplikationASP.Order"
                        DataKeyNames="Id"
                        AllowSorting="True"
                        UpdateMethod="GridView1_UpdateItem"
                        AutoGenerateEditButton="True"
                        SelectMethod="GridView1_GetData"
                        AutoGenerateColumns="False">
                        <Columns>
<%--                            <asp:ButtonField ButtonType="Link" Text="Select" CommandName="Select" />--%>
                            <asp:BoundField DataField="Id" HeaderText="ID" SortExpression="Id" ReadOnly="True" />
                            <asp:BoundField DataField="OrderDate" HeaderText="Order Date" SortExpression="OrderDate" ReadOnly="True" />
                            <asp:CheckBoxField HeaderText="Paid" DataField="IsPayed" />


                        </Columns>
                        <SelectedRowStyle BackColor="LightCyan"
                            ForeColor="DarkBlue"
                            Font-Bold="true" />
                    </asp:GridView>

        
</asp:Content>
